<div class="block" id="prlvrq">
	<h1>Benutzer-Rechte Bearbeiten</h1>
	<form action="#" method="post" onsubmit="Ax.Post(this).Request('profile_level_ajax', 'prlvrq'); return false;">
	<input type="hidden" name="user_id" value="{$user_id}" />
		
		{if $is_admin neq 1}
		
		
			<table class="color_table" style="width:400px;">
				<tr>
					<td colspan="2"><a href="javascript:Backend.CheckAll('chks')">Alle markieren</a></td>
				</tr>
			{foreach from=$internal_nav item=i_nav}
					<tr>
						<td colspan="2" class="bg"><strong>{$i_nav.title}</strong></td>
					</tr>
					{foreach from=$i_nav.subs item=a_item}
					<tr>
						<td width="10"><input class="chks" type="checkbox" name="rights[]" value="{$a_item->id}" {if in_array($a_item->id, $user_rights)} checked="checked" {/if} /></td>
						<td>{$a_item->title}</td>
					</tr>
					{/foreach}
			
			{/foreach}
			
			<tr>
				<td colspan="2" class="dark" style="padding-top:20px;"><input type="submit" class="submit" value="Speichern" /></td>
			</tr>
			</table>
		
		{else}
			<p>Administrator haben keine Benutzer-Rechte Level</p>
		{/if}
		
	</form>	
</div>

	<!-- OLD VERSION
		<table class="color_table">
			{foreach from=$all_rights item=rights}
			<tr>
				<td><input type="checkbox" name="rights[]" value="{$rights->id}" {if in_array($rights->id, $user_rights)} checked="checked" {/if} /></td>
				<td>{$rights->title}</td>
			</tr>
			{/foreach}
			<tr>
				<td colspan="2"></td>
			</tr>
		</table>
	-->